<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 27/9/2017
 * Time: 下午 5:24
 */

namespace app\common\model;


class Featured extends Base
{
    public function getFeaturedsByType($type)
    {
        $data=[
            'status' => ['neq',-1],
            'type'  => $type,
        ];
        $order=[
            'id' => 'desc'
        ];
        $result=$this->where($data)->order($order)->paginate();
        return $result;
    }
}